package com.blackhorse.service;

import com.blackhorse.domain.Account;

import java.util.List;

/**
 * 业务层Account业务
 */
public interface AccountService {
    //查询所有账户
    public List<Account> findAll();

    //根据id查询账户
    public Account findById(int id);

    //保存账户
    public void saveAccount(Account account);

    //更新账户
    public void updateAccount(Account account);

    //转账
    public void transfer(int srcId, int tarId, float money);
}
